.contactList-item td {
    padding: 1.1rem 0 !important;
    min-height: 40px;
}

.contactList-item.contactList-item.contactList-item td ul {
    line-height: normal;
}

.contactList-item-activeContact td {
    background: $active-background;
    * { color: set-color($active-background, $white) }
}

.contactList-item-delete {
    float: right;
    height: 100%;
    width: 40px;
    background: transparent;
    border: 0;
    color: $primary;
}
.contactList-item-delete:hover { color: $red }
.contactList-item-activeContact .contactList-item-delete { color: inherit }
.contactList-item-email,
.contactList-item-name,
.contactList-item-delete {
    > * {
        pointer-events: none;
    }
}

.contactList-table .contactList-item-name,
.contactList-table .contactList-item-email,
.contactList-table .contactList-item-email-wrapper {
    vertical-align: middle !important;
}

.contactList-table .contactList-tbody td {
    line-height: normal !important;
}

.contactList-item-email .inlineList {
    padding-right: .5em !important;
}

.contactList-item-email.contactList-item-email {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding-right: .5em !important;
}

.contactList-item-group {
    flex-shrink: 0;
    min-width: 0;
}

.contactList-item-name.contactList-item-name {
    padding-right: .2em !important;
}

.contactList-checkbox {
    border-left: .4em solid transparent;
}

.contactList-item-activeCursorContact .contactList-checkbox {
    border-left-color: $primary;
}

[class*="contactList-item-"] span { pointer-events: none }

.contactList-container .pm_table {
    > * { cursor: pointer }
    table { margin: 0 }
    thead {
        th[data-action]:hover {
            background: darken($tertiary, 4);
        }
    }
    tbody {
        .contactList-checkbox {
            width: 40px;
            padding: 0;
        }
        span,
        ul {
            overflow: hidden;
            text-overflow: ellipsis;
            display: block;
            max-width: 100%;
        }

        ul {
            list-style: none;
            margin: 0;
            padding: 0;

            li {
                display: inline;

                &:not(:last-of-type):after {
                    content: ", ";
                }
            }
        }
    }

    .contactArrowsSort-container {
        float: right;
    }
}

.contactList-container:not(.contactList-loaded) .contactNoResult-container { display: none }
